package com.geeguo.ebuilder.client.business.system.webmodule.remote.fallback;

import com.geeguo.ebuilder.client.business.system.webmodule.model.WebModuleRO;
import com.geeguo.ebuilder.client.business.system.webmodule.remote.WebModuleApi;
import com.geeguo.ebuilder.core.common.action.ActionResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class WebModuleApiFallback implements WebModuleApi {

    @Override
    public ActionResult<List<WebModuleRO>> listAll() {
        log.error("从运营中心获取Web端菜单列表失败。");
        return ActionResult.fail("从运营中心获取Web端菜单列表失败。");
    }
}